<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>pln_inco.freeling</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pln_inco-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="pln_inco-module.html">Package&nbsp;pln_inco</a> ::
        Module&nbsp;freeling
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="pln_inco.freeling-module.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== MODULE DESCRIPTION ==================== -->
<h1 class="epydoc">Module freeling</h1><p class="nomargin-top"><span class="codelink"><a href="pln_inco.freeling-pysrc.html">source&nbsp;code</a></span></p>
<!-- ==================== FUNCTIONS ==================== -->
<a name="section-Functions"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Functions</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Functions"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="pln_inco.freeling-module.html#salidaProceso" class="summary-sig-name" onclick="show_private();">salidaProceso</a>(<span class="summary-sig-arg">cmd</span>,
        <span class="summary-sig-arg">entrada</span>)</span><br />
      Ejecuta el proceso referido en cmd.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pln_inco.freeling-pysrc.html#salidaProceso">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="pln_inco.freeling-module.html#obtenerSalidaFreeling" class="summary-sig-name">obtenerSalidaFreeling</a>(<span class="summary-sig-arg">texto</span>,
        <span class="summary-sig-arg">outf</span>,
        <span class="summary-sig-arg">parametros</span>)</span><br />
      Devuelve una lista con informaci&#243;n del texto, obtenida con Freeling.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pln_inco.freeling-pysrc.html#obtenerSalidaFreeling">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="pln_inco.freeling-module.html#obtenerInfoEtiquetadoFreeling" class="summary-sig-name">obtenerInfoEtiquetadoFreeling</a>(<span class="summary-sig-arg">texto</span>)</span><br />
      Devuelve una lista de las oraciones identificadas por Freeling.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pln_inco.freeling-pysrc.html#obtenerInfoEtiquetadoFreeling">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="pln_inco.freeling-module.html#sacarTildes" class="summary-sig-name" onclick="show_private();">sacarTildes</a>(<span class="summary-sig-arg">texto</span>)</span><br />
      Funci&#243;n auxiliar que reemplaza los tildes por su versi&#243;n no 
      acentuada.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pln_inco.freeling-pysrc.html#sacarTildes">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="pln_inco.freeling-module.html#obtenerOracionesEtiquetadasFreeling" class="summary-sig-name">obtenerOracionesEtiquetadasFreeling</a>(<span class="summary-sig-arg">text_file</span>,
        <span class="summary-sig-arg">encoding</span>)</span><br />
      Devuelve una lista de las oraciones identificadas por Freeling.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pln_inco.freeling-pysrc.html#obtenerOracionesEtiquetadasFreeling">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
</table>
<!-- ==================== VARIABLES ==================== -->
<a name="section-Variables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Variables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="pln_inco.freeling-module.html#base_cmd_freeling" class="summary-name" onclick="show_private();">base_cmd_freeling</a> = <code title="['analyzer', '-f', '%s/config/es.cfg' % os.environ ['FREELINGSHARE']]">['analyzer', '-f', '%s/config/es.cfg' % os<code class="variable-ellipsis">...</code></code>
    </td>
  </tr>
</table>
<!-- ==================== FUNCTION DETAILS ==================== -->
<a name="section-FunctionDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Function Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-FunctionDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="salidaProceso"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">salidaProceso</span>(<span class="sig-arg">cmd</span>,
        <span class="sig-arg">entrada</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="pln_inco.freeling-pysrc.html#salidaProceso">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Ejecuta el proceso referido en cmd. Devuelve una lista con todas las 
  l&#237;neas de la salida.</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="obtenerSalidaFreeling"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">obtenerSalidaFreeling</span>(<span class="sig-arg">texto</span>,
        <span class="sig-arg">outf</span>,
        <span class="sig-arg">parametros</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="pln_inco.freeling-pysrc.html#obtenerSalidaFreeling">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Devuelve una lista con informaci&#243;n del texto, obtenida con Freeling. 
  Freeling utilizar&#225; el archivo de configuraci&#243;n por defecto para el idioma
  espa&#241;ol.</p>
  <p>En outf se indica el par&#225;metro que se le pasar&#237;a al analyzer (plain, 
  token, splitted, morfo, tagged, parsed, dep). En parametros pueden ir m&#225;s
  par&#225;metros de configuraci&#243;n de Freeling. Por ejemplo, parametros podr&#237;a 
  ser ['--ner', 'basic', '--noafx'].</p>
  <p>La salida se devuelve como texto plano.</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="obtenerInfoEtiquetadoFreeling"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">obtenerInfoEtiquetadoFreeling</span>(<span class="sig-arg">texto</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="pln_inco.freeling-pysrc.html#obtenerInfoEtiquetadoFreeling">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Devuelve una lista de las oraciones identificadas por Freeling.</p>
  <p>Cada oraci&#243;n es una lista de tuplas (token, lema, tag gramatical). Los
  tokens son los strings tal cu&#225;l los genera Freeling, sin marcas de d&#243;nde 
  comienzan y terminan en el texto original.</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="sacarTildes"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">sacarTildes</span>(<span class="sig-arg">texto</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="pln_inco.freeling-pysrc.html#sacarTildes">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Funci&#243;n auxiliar que reemplaza los tildes por su versi&#243;n no acentuada.
  Se utiliza solamente en la funci&#243;n obtenerLemasEtiquetasFreeling() para 
  casos como &quot;cont&#225;ndoselo&quot; que Freeling convierte en 
  &quot;contando&quot;, &quot;se&quot;, &quot;lo&quot; (saca el tilde de la
  primera parte).</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="obtenerOracionesEtiquetadasFreeling"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">obtenerOracionesEtiquetadasFreeling</span>(<span class="sig-arg">text_file</span>,
        <span class="sig-arg">encoding</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="pln_inco.freeling-pysrc.html#obtenerOracionesEtiquetadasFreeling">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Devuelve una lista de las oraciones identificadas por Freeling.</p>
  <p>Cada oraci&#243;n es una lista de tuplas (token, lema, tag gramatical). 
  Para cada token de Freeling se devuelve una estructura TokenTexto con 
  informaci&#243;n de la posici&#243;n de inicio y fin del token en el texto 
  original.</p>
  <p>El resultado es una lista cuyos elementos son [(TokenTexto, 
  diccionario)] donde diccionario tiene la informaci&#243;n que brind&#243; Freeling 
  (indexable por claves claves 'lema_freeling' y 'tag_freeling').</p>
  <p>En encoding se debe especificar la codificaci&#243;n del archivo de texto, 
  por ejemplo 'iso-8859-1' o 'utf-8'.</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== VARIABLES DETAILS ==================== -->
<a name="section-VariablesDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Variables Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-VariablesDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="base_cmd_freeling"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">base_cmd_freeling</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
['analyzer', '-f', '%s/config/es.cfg' % os.environ ['FREELINGSHARE']]
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pln_inco-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Tue Apr 26 01:04:50 2011
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
